import request from '@/utils/request'
import qs from 'qs'
/** ******************************综合统计 -能源***************************************/

/**
 * 能源综合看板
 *
 * @export
 * @return {*}
 */
export const quaeterFillYearSum = (data) => {
  return request({
    url: '/admin/ny/NydangersLedgerHome/quaeterFillYearSum',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 综合能源消费量
 *
 * @export
 * @return {*}
 */
export const getNySynthesisCostList = (data) => {
  return request({
    url: '/admin/ny/NyCompany/getNySynthesisCostList',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 能源消耗量、万元产值综合能耗
 *
 * @export
 * @return {*}
 */
export const getHomeData = (data) => {
  return request({
    url: '/admin/ny/NyEnergy/getHomeData',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 通过能源管理体系认证企业
 *
 * @export
 * @return {*}
 */
export const energyCertifyByCompanyNum = (data) => {
  return request({
    url: '/admin/ny/EnergyCertify/energyCertifyByCompanyNum',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 重点用能单位
 *
 * @export
 * @return {*}
 */
export const getImportEnergyStatistic = (data) => {
  return request({
    url: '/admin/ny/NyCompany/getImportEnergyStatistic',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 光伏项目 合同能源项目
 *
 * @export
 * @return {*}
 */
export const projectsTypeNum = (data) => {
  return request({
    url: '/admin/ny/EnergyEvaluate/projectsTypeNum',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * 绿色工厂
 *
 * @export
 * @return {*}
 */
export const greenFactorTypeNum = (data) => {
  return request({
    url: '/admin/ny/EnergyCertify/greenFactorTypeNum',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 清洁生产项目
 *
 * @export
 * @return {*}
 */
export const cleanerProductionTypeNum = (data) => {
  return request({
    url: '/admin/ny/EnergyCertify/cleanerProductionTypeNum',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 在聘能源专家
 *
 * @export
 * @return {*}
 */
export const getExpertStatistics = (data) => {
  return request({
    url: '/admin/ny/NyExpert/getExpertStatistics',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 用能结构占比分析
 *
 * @export
 * @return {*}
 */
export const getEnergyUsage = (data) => {
  return request({
    url: '/admin/ny/NyEnergy/getEnergyUsage',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 企业能源消费排名
 *
 * @export
 * @return {*}
 */
export const getByCompany = (data) => {
  return request({
    url: '/admin/ny/NyEnergy/getByCompany',
    method: 'POST',
    data: qs.stringify(data)
  })
}
